package shijian.database.mapper;

import shijian.database.entity.BaseEntity;

import java.sql.SQLException;
import java.util.List;
import java.util.Map;
import java.util.Objects;

/**
 * @Description
 * @Author 25316
 * @Date 2024-09-08 8:51
 */
public interface BaseMapper<T extends BaseEntity> {

    int insert(T t) throws SQLException;

    int delete(T t) throws SQLException;

    int update(T t) throws SQLException;

    T query(Map<String, Object> queryParams);

    List<T> queryList(Map<String, Object> queryParams);

}
